//
//  PeachTIMVoiceHelper.h
//  PeachDoctor
//
//  Created by ui on 2019/9/26.
//  Copyright © 2019 四川睡呗科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>
@class PeachMessageModel;

NS_ASSUME_NONNULL_BEGIN

@protocol PeachTIMVoiceHelperDelegate <NSObject>
/// 录音操作完成 返回本地存储路径
/// @param voicePath <#voicePath description#>
- (void)endRecordPath:(NSString *)voicePath;
/// 播放失败
- (void)playFail;

@end

@interface PeachVoiceMessageHelper : NSObject

@property (nonatomic, weak) id<PeachTIMVoiceHelperDelegate> delegate;
#pragma mark - 语音发起

/// 开始语音录制操作
- (void)recordBtnDown;

/// 停止语音录制操作
- (void)recordBtnUp;

/// 取消语音录制操作
- (void)cancelRecord;

/// 播放语音录制操作
/// @param voiceData <#voiceData description#>
- (void)playVoiceMessage:(PeachMessageModel *)voiceData;

@end

NS_ASSUME_NONNULL_END
